package net.ewon.avatar.agent.impl;

import java.io.IOException;

import net.ewon.avatar.agent.AvatarPackageRepo;
import net.ewon.avatar.common.util.FilePathUtils;

public class RuntimeWinEnvironment extends RuntimeAbstractEnvironment {

	public RuntimeWinEnvironment(String root,
			AvatarPackageRepo avatarPackageRepo) {
		super(root, avatarPackageRepo);
	}
 
	protected void doShutdown(String binDir) throws IOException { 
		runCommand(binDir, "stopService.bat");
	}

	protected void doStartup(String binDir) throws IOException {
		runCommand(binDir, "startService.bat");
	} 
	
	@Override
	protected String normalize(String path) {
		return FilePathUtils.normalizeWin(path);
	} 

}
